package cate.common.table.activity.limitshopactivity.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.limitshopactivity.row.LimitShopActivityItemRow;

import java.util.List;
import java.util.stream.Collectors;

public class LimitShopActivityExchangeSheet extends ESheet<LimitShopActivityItemRow> {
    @Override
    public String getSheetName() {
        return "兑换商城";
    }

    public List<LimitShopActivityItemRow> getItems(int group, int openDay){
        return getList().stream().filter(e -> e.group == group && openDay >= e.openDay).collect(Collectors.toList());
    }
}
